<template>
  <div id="datelist">
    <div class="datebody">
      <!--// 展示的日历表格-->
      <div class="datebody-list-box">
        <div class="checktime">2019-03</div>
        <div class="datebody-title"><span>周日</span><span>周一</span><span>周二</span><span>周三</span><span>周四</span><span>周五</span><span>周六</span></div>
        <div class="datebody-list">
          <span>1</span>
          <span>2</span>
          <span>3</span>
          <span>4</span>
          <span>5</span>
          <span>6</span>
          <span>7</span>
          <span>8</span>
          <span>9</span>
          <span>10</span>
          <span>11</span>
          <span>12</span>
          <span>13</span>
          <span>14</span>
          <span>15</span>
          <span>16</span>
          <span>17</span>
          <span>18</span>
          <span>19</span>
          <span>20</span>
          <span>21</span>
          <span>22</span>
          <span>23</span>
          <span>24</span>
          <span>25</span>
          <span>26</span>
          <span>27</span>
          <span>28</span>
          <span>29</span>
          <span>30</span>
          <span>31</span>
        </div>
      </div>
      <!--隐藏滚动条-->
      <div class="sorllheigth-body">
        <div class="sorllheigth-list"></div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        thatTime: '2019-03-21'
      }
    },
    created () {
      console.log('日历待办事项')
    },
    methods: {},
    mounted () {
    }
  }
</script>

<style lang="scss">
  #datelist{
    padding-top:50px;
    height: 100%;
    background: #555;
  }
  .datebody{
    position: relative;
    margin:60px auto;
    background: #fff;
    border-radius: 4px;
    box-sizing: border-box;
    width: 560px;
    overflow: hidden;
    box-shadow: 0 0 8px #333;
    .checktime{
      padding:20px;
      font-size: 22px;
      color:#000;
      font-weight: bold;
      border-bottom:1px solid #eee;
    }
    .datebody-title{
      height: 50px;
      line-height: 50px;
      text-align: center;
      overflow: hidden;
      span{
        border-right:1px solid #eee;
        display: block;
        width: 80px;
        float: left;
        &:last-child{
          border:none
        }
      }
    }
    .datebody-list{
      text-align: center;
      overflow: hidden;
      border-top:1px solid #eee;
      span{
        border-right:1px solid #eee;
        display: block;
        width: 80px;
        height: 60px;
        line-height: 60px;
        float: left;
        border-bottom: 1px solid #eee;
        cursor: pointer;
        &:nth-child(7n){
          border-right:none
        }
      }
    }
    /*滚动条*/
    .sorllheigth-body{
      position: absolute;
      top: 0;
      width: 100%;
      height: 100%;
      .sorllheigth-list{
        width: 100%;
        background: rgba(0,0,0,.2);
        height: 500px;
      }
    }
  }
</style>
